<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <include file="Public/meta" />
    <link rel="stylesheet" href="__ADMIN_JS__/iCheck-1.0.2/skins/all.css">
</head>
<body>
<div class="info-center">
    <div class="page-header">
        <div class="pull-left">
            <h4>新增代理商</h4>
            <a href="javascript:history.go(-1)">
                <button class="btn btn-default"><i class="fa fa-level-up"></i>返回</button>
            </a>
        </div>
    </div>
    <div class="clearfix"></div>
    <div class="table-margin">
        <form action="" class="form-horizontal" method="post">
            <table class="table table-hover contact-template-form">
                <tbody>
                <tr>
                    <td width="20%" align="right">等级：</td>
                    <td>
                        <input class="form-control w-300" type="text" name="dengji" value="{$agent_info.level}" disabled="disabled">
                    </td>
                </tr>
                <tr>
                    <td width="20%" align="right"><font color="red">*</font>账号：</td>
                    <td>
                        <input class="form-control w-300" type="text" name="admin_name" value="" placeholder="请输入代理商账号">
                    </td>
                </tr>
                <tr>
                    <td width="20%" align="right"><font color="red">*</font>密码：</td>
                    <td>
                        <input class="form-control w-300 pull-left" type="password" name="admin_password" placeholder="请输入代理商密码">
                    </td>
                </tr>
                <tr>
                    <td width="20%" align="right"><font color="red">*</font>确认密码：</td>
                    <td>
                        <input class="form-control w-300 pull-left" type="password" name="repassword" placeholder="请再次输入">
                    </td>
                </tr>

                <foreach name="list" item="vo">
                    <tr>
                        <td width="20%" align="right">{$vo.operator_name}：</td>
                        <td>
                            实例
                            <input class="form-control w-300" type="text" name="instance[{$vo.id}]" value="" placeholder="请输入实例">
                        </td>
                        <td>
                            系统盘
                            <input class="form-control w-300" type="text" name="system_disk[{$vo.id}]" value="" placeholder="请输入系统盘">
                        </td>
                        <td>
                            存储盘
                            <input class="form-control w-300" type="text" name="storage_disc[{$vo.id}]" value="" placeholder="请输入存储盘">
                        </td>
                        <td>
                            公网带宽
                            <input class="form-control w-300" type="text" name="network[{$vo.id}]" value="" placeholder="请输入公网带宽">
                            <input type="hidden" name ='id[{$vo.id}]' value="{$vo.id}">
                        </td>
                    </tr>
                </foreach>

                <tr>
                    <td width="20%" align="right">电话：</td>
                    <td>
                        <input class="form-control w-300" type="text" name="phone" value="" placeholder="请输代理商联系方式">
                    </td>
                </tr>
                <tr>
                    <td width="20%" align="right">邮箱：</td>
                    <td>
                        <input class="form-control w-300" type="text" name="email" value="" placeholder="请输代理商邮箱">
                    </td>
                </tr>
                <tr>
                    <td width="20%" align="right">状态：</td>
                    <td>
                        <label>
                            <span class="inputword">允许登录</span>
                            <input checked="checked" class="xb-icheck" type="radio" name="status" value="1" >
                        </label> &emsp;
                        <label>
                            <span class="inputword">禁止登录</span>
                            <input class="xb-icheck" class="xb-icheck" type="radio" name="status" value="2" checked="checked" ></label>
                    </td>
                </tr>
                <tr>
                    <tD></td>
                    <td>
                        <input class="btn btn-primary" type="submit" value="添加">
                    </td>
                </tr>
                </tbody>
            </table>
        </form>
    </div>
</div>
<script type="text/javascript" src="__ADMIN_JS__/common.js"></script>
<script type="text/javascript" src="__ADMIN_JS__/iCheck-1.0.2/icheck.js"></script>
<script type="text/javascript">

    $(document).ready(function(){
        $('.xb-icheck').iCheck({
            checkboxClass: "icheckbox_minimal-blue",
            radioClass: "iradio_minimal-blue",
            increaseArea: "20%"
        });
    });
</script>
</body>
</html>